import Vue from 'vue'
import Router from 'vue-router'
const index = () => import('@/pages/views/index.vue')
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children: [
        {
          // 数据添加
          path: '/addJson',
          name: 'addJson',
          component: () => import('@/pages/invoices/AddJson.vue')
        },
        {
          // 单据
          path: '/invoices',
          name: 'invoices',
          component: () => import('@/pages/invoices/index.vue')
        }
      ]
    }
  ]
})
